ioemu: actually check for errors in bdrv_flush et al
authorKeir Fraser <keir.fraser@citrix.com>
Mon, 31 Mar 2008 09:35:35 +0000 (10:35 +0100)
committerKeir Fraser <keir.fraser@citrix.com>
Mon, 31 Mar 2008 09:35:35 +0000 (10:35 +0100)
commit28f2b557689f8310bebdff15b37f079bc3fb5d0a
tree495c159b94be2cb10095772a7f9b445aa5ebe433
parenta828fa1544b0ae5b3941e5f8181603964bcec530
ioemu: actually check for errors in bdrv_flush et al

bdrv_flush is declared to return void, but this is wrong because it
means that the implementations have nowhere to report their errors.
Indeed, the implementations generally ignore errors.

This patch corrects this by making it return int (implicitly, either 0
or -errno, as for other similar functions).  All of the
implementations and callers are adjusted too.

Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
tools/ioemu/block-qcow.c
tools/ioemu/block-qcow2.c
tools/ioemu/block-raw.c
tools/ioemu/block-vmdk.c
tools/ioemu/block.c
tools/ioemu/block_int.h
tools/ioemu/hw/ide.c
tools/ioemu/hw/scsi-disk.c
tools/ioemu/vl.h